home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / WildCardFileFilenameFilter.java < prev    next >
Text File  |  1998-09-08  |  914b  |  48 lines

  1. package com.symantec.itools.io;
  2.  
  3.  
  4. import java.io.File;
  5. import java.io.FilenameFilter;
  6.  
  7.  
  8. /**
  9.  * @author Symantec Internet Tools Division
  10.  * @version 1.0
  11.  * @since VCafe 3.0
  12.  */
  13.  
  14. public class WildCardFileFilenameFilter
  15.     extends    WildCardFilenameFilter
  16.     implements FileFilenameFilter
  17. {
  18.     public WildCardFileFilenameFilter(String pattern)
  19.     {
  20.         super(pattern);
  21.     }
  22.  
  23.     public WildCardFileFilenameFilter(String aPattern, boolean caseSensitiveFlag)
  24.     {
  25.         super(aPattern, caseSensitiveFlag);
  26.     }
  27.  
  28.     /**
  29.      * @param dir TODO
  30.      * @param s TODO
  31.      * @since VCafe 3.0
  32.      */
  33.  
  34.     public boolean accept(File dir, String s)
  35.     {
  36.         File file;
  37.  
  38.         // FIX!!!!
  39.         file = new File(dir.getAbsolutePath() + s);
  40.  
  41.         if(file.isFile())
  42.         {
  43.             return (matchFilename(s));
  44.         }
  45.  
  46.         return (false);
  47.     }
  48. }